﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>时间相加</title>
    <script type="text/javascript">
        var d = new Date("2020/6/12");
        d.setDate(d.getDate() + 35);    // 日期加35后，生成新的日期
        alert(d.toLocaleString());
    </script>
</head>
<body>

</body>
</html>